"""
__author__ = 'heyanmin'
__time__ = '2021/8/8 6:48 下午'
"""
from lianxi.api_demos.api.token_api import TokenApi


class TagApi(TokenApi):
    def search(self):
        data = {
            "url":"",
            "method":"",
            "params":"",
            "json":""
        }
        r = self.request(data)
        return r

    def add(self,group_name,tag_name):
        data = {
            "url":"",
            "method":"",
            "json": {"group_name":group_name,
                "tag": [{"name": tag_name,}]}
        }
        r = self.request(data)
        return r